package tool;


import info.SubscribeForm;

import java.util.Date;

public class checkDate {
    public boolean checkStart(Date newData, Date EndData) {
        if(newData.after(EndData)){
            return false;
        }else{
            return true;
        }
    }
    public boolean checkEnd(Date newData,Date StartData){
        if(newData.before(StartData)){
            return false;
        }else{
            return true;
        }
    }
}
